<%@page contentType="text/html; charset=UTF-8"%>
<jsp:useBean id="action" scope="request"
	class="swd.work.conf_form_fields.Action" />
<jsp:useBean id="view" scope="request"
	class="swd.work.conf_form_fields.View" />
<jsp:setProperty name="view" property="*" />
<%if (action.action(pageContext).equals("login")) {return;}%>
<html>
<head>
<title><%=view.getPrgTitle()%></title>
<LINK HREF="/SWD/workflow.css" REL="STYLESHEET" TYPE="TEXT/CSS">
<jsp:include flush="true" page="../pub/setServerInfoForJS.jsp" />
<script type="text/javascript" language="javascript1.2"
	src="/PUBPAGE/general/commscript.js"></script>
<script type="text/javascript" language="javascript1.2"
	src="/PUBPAGE/general/commhtmlscript.js"></script>
<script type="text/javascript" language="javascript1.2"
	src="/SWD/general/swd.js"></script>
<script type="text/javascript" language="javascript1.2"
	src="/SWD/general/conf_form_fields.js"></script>
<script type="text/javascript" language="javascript1.2">
</script>
</head>
<body onLoad="javascript:<%=view.getOnloadScript()%>">
<TABLE BORDER="0" HEIGHT="20" CELLPADDING="0" CELLSPACING="0">
	<TR>
		<TD BACKGROUND="/PUBPAGE/pub_images/title/title_bg.gif">
		<DIV ALIGN="LEFT"><IMG
			SRC="/PUBPAGE/pub_images/title/title01.gif" WIDTH="18" HEIGHT="24"
			HSPACE="0" alt="" /> <IMG SRC="/PUBPAGE/pub_images/glass.gif"
			WIDTH="12" HEIGHT="8" alt="" /></DIV>
		</TD>
		<TD ALIGN="LEFT" HEIGHT="20" VALIGN="MIDDLE"
			BACKGROUND="/PUBPAGE/pub_images/title/title_bg.gif" CLASS="TITLE">
		<%=view.getPrgTitle()%></TD>
		<TD BACKGROUND="/PUBPAGE/pub_images/title/title_bg.gif">
		<DIV ALIGN="RIGHT"><IMG SRC="/PUBPAGE/pub_images/glass.gif"
			WIDTH="12" HEIGHT="8" alt="" /> <IMG
			SRC="/PUBPAGE/pub_images/title/title02.gif" WIDTH="18" HEIGHT="24"
			HSPACE="0" alt="" /></DIV>
		</TD>
	</TR>
</TABLE>
<form action="<%=request.getRequestURI() %>" method="POST"
	name="WorkForm">
<table>
	<tr>
		<td style=""><INPUT TYPE="BUTTON" class="button b_normal"
			VALUE="<%=view.getBtnAddTitle()%>" CLASS="button"
			ONCLICK="javascript:document.forms[0].prgAction.value='add';document.forms[0].submit();" /></td>
		<td style=""><INPUT TYPE="BUTTON" class="button b_normal"
			VALUE="<%=view.getBtnSaveTitle()%>" CLASS="button"
			ONCLICK="javascript:if(document.forms[0].prgStatus.value=='addMaster'){document.forms[0].prgAction.value='save';document.forms[0].submit();}else{document.forms[1].prgAction.value='save';document.forms[1].submit();}" /></td>
		<td style=""><INPUT TYPE="BUTTON" class="button b_normal"
			VALUE="<%=view.getBtnQueryTitle()%>" CLASS="button"
			ONCLICK="javascript:document.forms[0].prgAction.value='query';document.forms[0].submit();" /></td>
		<td style=""><INPUT TYPE="BUTTON" class="button b_normal"
			VALUE="<%=view.getBtnModifyTitle()%>" CLASS="button"
			ONCLICK="javascript:document.forms[0].prgAction.value='modify';document.forms[0].submit();" /></td>
		<td style=""><INPUT TYPE="BUTTON" class="button b_normal"
			VALUE="<%=view.getBtnApproveTitle()%>" CLASS="button"
			ONCLICK="javascript:document.forms[0].prgAction.value='approve';document.forms[0].submit();" /></td>
		<td style=""><INPUT TYPE="BUTTON" class="button b_normal"
			VALUE="<%=view.getBtnRejectTitle()%>" CLASS="button"
			ONCLICK="javascript:document.forms[0].prgAction.value='reject';document.forms[0].submit();" /></td>
		<td style=""><INPUT TYPE="BUTTON" class="button b_normal"
			VALUE="<%=view.getBtnDraftTitle()%>" CLASS="button"
			ONCLICK="javascript:document.forms[0].prgAction.value='draft';document.forms[0].submit();" /></td>
		<td style=""><INPUT TYPE="BUTTON" class="button b_normal"
			VALUE="<%=view.getBtnNextFormTitle()%>" CLASS="button"
			ONCLICK="javascript:document.forms[0].prgAction.value='nextform';document.forms[0].submit();" /></td>
		<td style=""><INPUT TYPE="BUTTON" class="button b_normal"
			VALUE="<%=view.getBtnPrivousFormTitle()%>" CLASS="button"
			ONCLICK="javascript:document.forms[0].prgAction.value='privousform';document.forms[0].submit();" /></td>
		<td style=""><INPUT TYPE="BUTTON" class="button b_normal"
			VALUE="<%=view.getBtnCancelTitle()%>" CLASS="button"
			ONCLICK="javascript:document.forms[0].prgAction.value='cancel';document.forms[0].submit();" /></td>
		<td style=""><INPUT TYPE="BUTTON" class="button b_normal"
			VALUE="<%=view.getBtnDeleteTitle()%>" CLASS="button"
			ONCLICK="javascript:document.forms[0].prgAction.value='delete';document.forms[0].submit();" /></td>
	</tr>
</table>
<table BORDER="0" WIDTH="540px" CELLSPACING="1" CELLPADDING="0">
	<tr>
		<td nowrap WIDTH="20%" CLASS="td_head"><%=view.getPrg_noTitle()%></td>
		<td CLASS="td_content"><input type="text" size="15" name="prg_no"
			class="input_window hand"
			ondblclick="javascript:evt_prg_no_ondbclick(this);"
			value="<%=(view.getprg_no()==null ? "" : view.getprg_no())%>">
		</td>
		<td nowrap WIDTH="20%" CLASS="td_head"><%=view.getFrm_noTitle()%></td>
		<td CLASS="td_content"><input type="text" name="frm_no" size="4"
			maxlength="4" class="input"
			value="<%=(view.getfrm_no()==null ? "" : view.getfrm_no())%>" /></td>
	</tr>
	<tr>
		<td nowrap WIDTH="20%" CLASS="td_head"><%=view.getdbf_noTitle()%></td>
		<td CLASS="td_content"><input type="text" size="15" name="dbf_no"
			class="input_window hand"
			ondblclick="javascript:evt_dbf_no_ondbclick(this);"
			onchange="javascript:evt_dbf_no_onchange(this);"
			value="<%=(view.getdbf_no()==null ? "" : view.getdbf_no())%>">
		</td>
		<td nowrap WIDTH="20%" CLASS="td_head"><%=view.getfrm_nameTitle()%></td>
		<td CLASS="td_content"><input type="text" name="frm_name"
			size="20" maxlength="20" class="input"
			value="<%=(view.getfrm_name()==null ? "" : view.getfrm_name())%>" />
		</td>
	</tr>
</table>
<INPUT TYPE="HIDDEN" NAME="prgAction" VALUE="<%=view.getPrgAction()%>" />
<INPUT TYPE="HIDDEN" NAME="prgStatus" VALUE="<%=view.getPrgStatus()%>" />
</form>
<div id="divDataView"><%=view.getDataViewHtml()==null ? "":view.getDataViewHtml()%></div>
</body>
</html>
